package com.tedu.bill;

/**
 * Author：毕龙
 * Date: 2024/3/17 15:27
 */
public class TestOperator3 {
    public static void main(String[] args) {
        //声明两个变量
        int a = 10;
        int b = 3;

        a += b;// a = a+b  效率高
        System.out.println(a);//13
        a -= b;
        System.out.println(a);//10
        a *= b;
        System.out.println(a);//30
        a /= b;
        System.out.println(a);//10
        a %= b;
        System.out.println(a);//1

    }
}
